<html>

	<head>
		<title>
			Administration Console
		</title>

		<link rel="stylesheet" href="default.css" type="text/css" media="screen">
	</head>

	<body id="login">
		<div id="container">

			<div id="content">
<h1>Oh no! You broke it!</h1>

<p>
<%
	if (request.getParameter("msg") != null)
	{
%>
	<h2><%= request.getParameter("msg")%></h2>
<%
	}
%>
<br>
	
<%	
	String s = request.getQueryString();
	int msgIndex = s.indexOf("msg");
	String url;
	
	if (msgIndex == -1)
	{
		url = s.substring(s.indexOf("url")+4);
	}
	else
	{
		url = s.substring(s.indexOf("url")+4, msgIndex-1);
	}
	
	String parsedUrl = url;
	
	if (parsedUrl.indexOf("&") != -1)
	{
		parsedUrl = url.substring(0, url.indexOf("&")) + "?" + url.substring(url.indexOf("&")+1);
	}

%>
	
<a href="<%= parsedUrl %>">Click here to try again</a>.</p>
			</div>
		</div>
	</body>

</html>